/* ----------------------- htmlparser/comment.js ------------------------ */
(function() {
   VED.htmlParser.comment = new Class({

      initialize: function( value ) {
         this.value = value;
         this._ = {
            isBlockLike: false
         }
      },

      type: 8,

      writeHtml: function( writer, filter ) {
         var comment = this.value;

         if( filter ) {
            if( !( comment = filter.onComment( comment, this ) ) ) return;

            if( typeof comment != 'string' ) {
               comment.parent = this.parent;
               comment.writeHtml( writer, filter );
               return;
            }
         }

         writer.comment( comment );
      }
   });
})();




